<?php /* Smarty version 2.6.18, created on 2009-03-04 09:31:45
         compiled from editrole.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'webcontrol', 'editrole.html', 11, false),array('function', 'url', 'editrole.html', 22, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<base href="http://localhost/xuebao/" />-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户管理</title>
<link href="templates/admin/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div>
  <?php echo $this->_plugins['function']['webcontrol'][0][0]->_pi_func_webcontrol(array('type' => 'menu','name' => 'mymenu'), $this);?>

	<div class="list">
        <div class="info">
            <div class="title_list_note">用户信息:</div>
            <div>用户:<?php echo $this->_tpl_vars['user']['username']; ?>
</div>
            <div>当前权限:</div>
            <?php $_from = $this->_tpl_vars['user']['roles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
                <div><?php echo $this->_tpl_vars['item']['rolename']; ?>
</div>
            <?php endforeach; endif; unset($_from); ?>
        </div>
        <div class="roles">
            <form method="post" action="<?php echo $this->_plugins['function']['url'][0][0]->_pi_func_url(array('controller' => 'role','action' => 'editrole'), $this);?>
">
            <span>权限列表:</span>
            <?php $_from = $this->_tpl_vars['roles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['listitem']):
?>
                <div>
                    <input name="roles[]" type="checkbox" id="roles" value="<?php echo $this->_tpl_vars['listitem']['role_id']; ?>
" />
                    <?php echo $this->_tpl_vars['listitem']['rolename']; ?>

                </div>
            <?php endforeach; endif; unset($_from); ?>
            <input type="submit" onfocus="this.blur()" tabindex="1" value="提交"/>
            <input type="reset" onfocus="this.blur()" tabindex="2"  value="取消"/>
            <input type="hidden" name="user_id" value="<?php echo $this->_tpl_vars['user']['user_id']; ?>
" />
        </form>
        </div>
    </div>
</div>
</body>
</html>